import {verifyMobile} from '@/utils/utils.js'
export default {
	mobile: {
		rules: [{
				required: true,
				errorMessage: '请输入手机号',
			},
			{
				validateFunction(rule, value, data, callback) {
					console.log(value)
					if(!verifyMobile(value)) callback('手机号输入有误')
				}
			}
		]
	},
	password: {
		rules: [{
			required: true,
			errorMessage: '请输入密码'
		}, {
			validateFunction(rulle, value, data, callback) {
				if(value.length < 6 || value.length > 18) callback('密码长度在6-18位之间')
			}
		}]
	}
}
